package com.monkey.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

/**
 * @author：monkey-L
 * @description: .
 * @date: 15:18 2021/10/6
 */
@Data
public class CommentVo {
    //分布式id比较长，防止前端精度损失, 把id转为String
//    @JsonSerialize(using = ToStringSerializer.class)
    private String id;

    private UserVo author;

    private String content;

    private List<CommentVo> childrens;

    private String createDate;

    private Integer level;

    private UserVo toUser;
}
